<!--
 * @Descripttion: 
 * @version: 
 * @Author: wtzhang
 * @Date: 2021-09-23 14:36:14
 * @LastEditors: wtzhang
 * @LastEditTime: 2021-09-23 14:39:31
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>等分布局-table</title>
</head>
<style>
  .row {
    width: 100%;
    display: table;
    height: 200px;
    table-layout: fixed;
  }
  .col {
    display: table-cell;
    height: 100%;
  }
  .col:nth-child(1) {
    background-color: coral;
  }
  .col:nth-child(2) {
    background-color: cornflowerblue;
  }
  .col:nth-child(3) {
    background-color: cyan;
  }
  .col:nth-child(4) {
    background-color: darkcyan;
  }
</style>
<body>
  <div class="row">
    <div class="col">1</div>
    <div class="col">2</div>
    <div class="col">3</div>
    <div class="col">4</div>
  </div>
</body>
</html>